#coding: utf-8

import AsmEngine
import AsmParser
import VLIW


""" Executa Engine original"""
def main():

    e = AsmEngine.AsmEngine();
    p = AsmParser.AsmParser();
    p.openASMFile("fonte.txt");
    e.loadInstructions(p.doParse());
    e.doExecute();


"""Executa o VLIW
def main():
   p = AsmParser.AsmParser();
   p.openASMFile("fonte.txt");
   v = VLIW.VLIW();
   v.loadInstructions(p.doParse());
   v.execute(p.getSomadores(),p.getMultiplicadores(),p.getEntradaSaida(), p.getRegOptorIn(),p.getRegOptingIn()) 
"""
main()